package org.dromara.web.domain.bo;

import org.dromara.web.domain.TSurvey;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 问卷表单业务对象 t_survey
 *
 * @author Lion Li
 * @date 2024-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TSurvey.class, reverseConvertGenerate = false)
public class TSurveyBo extends BaseEntity {

    /**
     * 表单ID
     */
    @NotNull(message = "表单ID不能为空", groups = { EditGroup.class })
    private Integer surveyId;

    /**
     * 表单名
     */
    @NotBlank(message = "表单名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long enable;


}
